package com.ikun.admin.modules.noauth.controller;

import com.ikun.common.utils.HttpContextUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

/**
 * @ClassName TestController
 * @Description:
 * @CreateDate: 2024/4/2 17:55
 */
@RestController
@RequestMapping("/noAuth/test")
public class TestAppController {


    @RequestMapping("/ipAddr")
    public String test(HttpServletRequest request) {

        String ipAddr = HttpContextUtils.getIpAddr(request);
        return ipAddr;
    }
}
